package com.ala4.oxcafe.exception;

/**
 * @author PING
 * @version 1.0
 * @date 2025/3/21 17:50
 */
public class BusinessException extends RuntimeException {

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, Object... params) {// 将 {} 替换为 %s
        super(String.format(message.replace("{}", "%s"), params));
    }

}
